import instance from "./request.js";
//获取学科列表
const getSubjectList = (data) => {
  return instance({
    url: "/subject/list",
    params: data,
  });
};
//增加学科
const add_subject = (data) => {
  return instance({
    url: "/subject/add",
    method: "post",
    data,
  });
};
//修改状态
const setSubject = (data) => {
  return instance({
    url: "/subject/status",
    method: "post",
    data,
  });
};
//编辑
const editSubject = (data) => {
  return instance({
    method: "post",
    url: "/subject/edit",
    data,
  });
};
//删除
const delSubject = (data) => {
  return instance({
    method: "post",
    url: "/subject/remove",
    data,
  });
};
export { getSubjectList, add_subject, setSubject, editSubject, delSubject };
